function deleteById(s,id){
    if(confirm("是否要删除？")){
        location.href=contextPath+s+id;
    }
}

function goindex(k,pages){
    var indexNum = +document.getElementById('inputPage').value;
    if (indexNum > 0 && indexNum<=pages){
        location.href=contextPath+k+'list?pageIndex='+indexNum;
    }else {
        confirm("输入的页数不正确！");
    }
}